package com.lbd.email.dao;

import com.lbd.email.bean.EmailTemplate;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;

/**
 * Created by wang on 2016/9/23.
 */
public interface EmailTemplateRepository extends PagingAndSortingRepository<EmailTemplate, Serializable>, JpaSpecificationExecutor<EmailTemplate> {
    /**
     * 根据Code查询邮件模板
     *
     * @param code
     * @return
     */
    EmailTemplate findByCode(String code);
}
